/*    */ package com.lmpop.createIndex.search;
/*    */ 
/*    */ import com.lmpop.createIndex.searchModel.Queue;
/*    */ import com.lmpop.createIndex.searchModel.QueueValue;
/*    */ import com.lmpop.createIndex.searchModel.SearchData;
/*    */ import com.lmpop.createIndex.searchModel.SearchModel;
/*    */ import java.io.IOException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class AskIndexFiles
/*    */ {
/*    */   public ProperUtil properUtil;
/*    */   private String file_path;
/*    */ 
/*    */   public AskIndexFiles()
/*    */   {
/* 20 */     this.properUtil = new ProperUtil();
/* 21 */     this.file_path = this.properUtil.getFilePathByModel("ask");
/*    */   }
/*    */ 
/*    */   public List getAskList(Map paraMap) throws IOException
/*    */   {
/* 26 */     ArrayList askList = new ArrayList();
/* 27 */     SearchData search = new SearchData();
/* 28 */     ArrayList paraList = new ArrayList();
/*    */ 
/* 30 */     String reply = ""; String class_attr = ""; String in_date = ""; String state_code = ""; String title = "";
/* 31 */     if (paraMap.get("reply") != null) reply = paraMap.get("reply").toString();
/* 32 */     if (paraMap.get("class_attr") != null) class_attr = paraMap.get("class_attr").toString();
/* 33 */     if (paraMap.get("title") != null) title = paraMap.get("title").toString();
/* 34 */     if (paraMap.get("state_code") != null) state_code = paraMap.get("state_code").toString();
/* 35 */     if (paraMap.get("in_date") != null) in_date = paraMap.get("in_date").toString();
/*    */ 
/* 37 */     Queue queue = new Queue(new QueueValue[] { new QueueValue("in_date", 2, false) });
/* 38 */     paraList.add(new SearchModel("0", "reply", reply));
/* 39 */     paraList.add(new SearchModel("0", "class_attr", class_attr));
/* 40 */     paraList.add(new SearchModel("0", "state_code", state_code));
/* 41 */     paraList.add(new SearchModel("0", "title", title));
/* 42 */     paraList.add(new SearchModel("1", "in_date", in_date));
/* 43 */     askList = search.getSearchInfo(this.file_path, paraList, queue);
/* 44 */     return askList;
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.createIndex.search.AskIndexFiles
 * JD-Core Version:    0.6.0
 */